var React = require('react');

//
// <ModalFooter confirmLabel="确定按钮名称" cancelLabel="取消按钮名称" />
//
// <ModalFooter>
//   ...
// </ModalFooter>
//

module.exports = function ModalFooter(props) {
  return /*#__PURE__*/ React.createElement("div", {
      className: "modal-footer"
    }, typeof props.cancelLabel === 'string' && props.cancelLabel !== '' && /*#__PURE__*/ React.createElement(
      "button", {
        type: "button",
        className: "btn btn-secondary x-btn-cancel",
        "data-dismiss": "modal"
      }, props.cancelLabel), typeof props.confirmLabel === 'string' && props.confirmLabel !== '' && /*#__PURE__*/
    React.createElement("button", {
      type: "button",
      className: "btn btn-primary x-btn-confirm"
    }, props.confirmLabel), props.children);
};